function Animal(){
    this.species = "动物";
   }
Animal.prototype.sayHi=function(){
    console.log('11111111111');
}
   
function Cat(name,color){
   
    //    Animal.apply(this,arguments);
       this.name = name;
       
       this.color = color;
       
}
// let ani=new Animal();
Cat.prototype=new Animal();//原型对象 Cat 继承到Animal的species的属性
Cat.prototype.constructor=Cat;